package com.aos.erp.message;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

@EnableScheduling //开启定时任务
@SpringBootApplication
@EnableEurekaClient

@EnableDiscoveryClient
@EnableFeignClients
@MapperScan("com.aos.erp.message.mapper")
@ComponentScan(basePackages={"com.aos.erp.common.config"
        , "com.aos.erp.message.service"
        , "com.aos.erp.message.task"
        , "com.aos.erp.message.remote"
        , "com.aos.erp.message.rest"
        , "com.aos.erp.message.rpc"})
public class MessageServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run( MessageServiceApplication.class, args );
    }
}
